home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 95 < prev    next >
Internet Message Format  |  1996-08-06  |  1KB

  1. Path: teal.csn.net!not-for-mail
  2. From: thads@csn.net (Thad Smith)
  3. Newsgroups: comp.std.c
  4. Subject: Re: Meaning of __STDC__?
  5. Date: 13 Jan 1996 09:32:21 -0700
  6. Organization: T3 Systems
  7. Message-ID: <HN19wQ9ytNRW084yn@csn.net>
  8. References: <4d6673$8to@mailgate.bridgewater.ne.hcc.com>
  9. Reply-To: ThadSmith@acm.org
  10. NNTP-Posting-Host: 199.117.27.22
  11.  
  12. In article <4d6673$8to@mailgate.bridgewater.ne.hcc.com>,
  13. kennedy@   (John W Kennedy) wrote:
  14.  
  15. >Is there an official statement as to what __STDC__ means?  Does it mean "This
  16. >compiler (in its current operating mode) fully supports ANSI Standard C," or
  17. >does it mean "This compiler (in its current operating mode) disallows all
  18. >extensions to ANSI Standard C."?  
  19.  
  20. It means that the implementation may be a conforming Standard C
  21. compiler.  Although the intention was probably that it is
  22. defined only when the implementation conforms to Standard C, which
  23. does allow extensions, the only guarantee is that if __STDC__ isn't
  24. defined, then the compiler is not conforming.
  25.  
  26. On a more practical level, some compilers undefine __STDC__ when
  27. extensions are enabled that make the compiler non-conforming, such as
  28. additional keywords (e.g., "far") or C++ style comments.
  29.  
  30. Thad
  31.